﻿using Sumen.Business.Presenter.Sys;
using Sumen.Library.Froms;
using Sumen.Model.Model;


namespace Sumen.GUI.Sumen_System
{
    public partial class Frm_Log_Error : XtraUserControlKira
    {
        SysErrorPresenter _sysErrorPresenter;
        public Frm_Log_Error()
        {
            InitializeComponent();
            _sysErrorPresenter = new SysErrorPresenter(new sumenEntitiesSystem());

        }

        public override void LoadForm()
        {
            gridControl1.DataSource = _sysErrorPresenter.GetAll();
            gridView1.BestFitColumns();
            base.LoadForm();
        }

        private void Frm_Log_Error_Load(object sender, System.EventArgs e)
        {
            gridControl1.DataSource = _sysErrorPresenter.GetAll();
            gridView1.BestFitColumns();
        }
    }
}